﻿<%@ Page Language="C#" MasterPageFile="~/defaultLayout.master" AutoEventWireup="true" CodeFile="AccountWijzigen.aspx.cs" Inherits="AccountWijzigen" %>
<%@ MasterType  virtualPath="~/defaultLayout.master"%>
<asp:Content ID="maincontent" ContentPlaceHolderID="main" runat="server">


    <div class="content">

                         <table>
                            <tr><td>Voornaam: </td><td>
                                <asp:TextBox ID="tbFirstName" runat="server"></asp:TextBox></td><td>
                                <asp:RegularExpressionValidator ID="revFirstName" ControlToValidate="tbFirstName" runat="server" ErrorMessage="U kunt hier alleen bestaande letters invoeren." ValidationExpression="^([ \u00c0-\u01ffa-zA-Z'])+$"></asp:RegularExpressionValidator></td></tr>
                            <tr><td>Tussenvoegsel: </td><td>
                                <asp:TextBox ID="tbTussenvoegsel" runat="server"></asp:TextBox></td><td>
                                <asp:RegularExpressionValidator ID="revTussenvoegsel" ControlToValidate="tbTussenvoegsel" runat="server" ErrorMessage="U kunt hier alleen bestaande letters invoeren." ValidationExpression="^([ \u00c0-\u01ffa-zA-Z'])+$"></asp:RegularExpressionValidator></td></tr>
                            <tr><td>Achternaam: </td><td>
                                <asp:TextBox ID="tbSurName" runat="server"></asp:TextBox></td><td>
                                <asp:RegularExpressionValidator ID="revSureName" ControlToValidate="tbSurName" runat="server" ErrorMessage="U kunt hier alleen bestaande letters invoeren." ValidationExpression="^([ \u00c0-\u01ffa-zA-Z'])+$"></asp:RegularExpressionValidator></td></tr>
                            <tr><td>Gebruikersnaam: </td><td>
                                <asp:TextBox ID="tbUsername" runat="server" AutoPostBack="true"></asp:TextBox></td><td>
                                <asp:Label ID="lblUsername" runat="server" Text=""></asp:Label></td></tr>
                            <tr><td>Wachtwoord: </td><td>
                                <asp:TextBox ID="tbPassword" TextMode="password" runat="server"></asp:TextBox></td><td>
                                <asp:RegularExpressionValidator ID="revPassword" runat="server" ControlToValidate="tbPassword" ErrorMessage="Min 8 karakters, max 12 karakters, min een letter, min een cijfer" ValidationExpression="(?!^[0-9]*$)(?!^[a-zA-Z]*$)(?!^[\w]*$)^([a-zA-Z0-9\w]{7,12})$"></asp:RegularExpressionValidator></td></tr>
                            <tr><td>Herhaal wachtwoord: </td><td>
                                <asp:TextBox ID="tbPassword2" TextMode="password" runat="server"></asp:TextBox></td><td>
                                <asp:CompareValidator ID="cvPassword" runat="server" ErrorMessage="Wachtwoorden moeten overeenkomen." ControlToCompare="tbPassword" ControlToValidate="tbPassword2"></asp:CompareValidator></td></tr>
                            <tr><td>Geboortedatum: </td><td>
                                <asp:TextBox ID="tbDateOfBirth" runat="server"></asp:TextBox></td> <td>
                                <asp:RegularExpressionValidator ID="revDateOfBirth" ControlToValidate="tbDateOfBirth" runat="server" ErrorMessage="Datum heeft de mm/dd/yyyy formaat. Voorbeeld: 12/29/1993." ValidationExpression="^(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d$"></asp:RegularExpressionValidator>
                            </td></tr>
                            <tr><td>Straatnaam: </td><td>
                                <asp:TextBox ID="tbStreet" runat="server"></asp:TextBox></td><td>
                                <asp:RegularExpressionValidator ID="revStreet" ControlToValidate="tbStreet" runat="server" ErrorMessage="U kunt hier alleen bestaande letters invoeren." ValidationExpression="^([ \u00c0-\u01ffa-zA-Z'])+$"></asp:RegularExpressionValidator></td></tr>
                            <tr><td>Huisnummer: </td><td>
                                <asp:TextBox ID="tbStreetNumber" runat="server"></asp:TextBox></td></tr>
                            <tr><td>Postcode: </td><td>
                                <asp:TextBox ID="tbPostal" runat="server"></asp:TextBox></td><td>
                                <asp:RegularExpressionValidator ID="revPostal" ControlToValidate="tbPostal" runat="server" ErrorMessage="Voer een geldige postcode in ####(a-Z)(a-Z). Voorbeeld: 1234YZ" ValidationExpression="^[1-9][0-9]{3}[a-zA-Z]{2}$"></asp:RegularExpressionValidator></td></tr>
                            <tr><td>Geslacht: </td><td> 
                                <asp:DropDownList ID="ddlSex" runat="server">
                                    <asp:ListItem>m</asp:ListItem>
                                    <asp:ListItem>v</asp:ListItem>
                                </asp:DropDownList> </td></tr>
                            <tr><td>Taal: </td><td> <asp:DropDownList ID="ddlLanguage" runat="server" DataSourceID="dsLanguage" DataTextField="naam" DataValueField="naam"></asp:DropDownList> </td></tr>
                            <tr><td>Nieuwsbrief: </td><td> 
                                <asp:DropDownList ID="ddlNewsletter" runat="server">
                                    <asp:ListItem>ja</asp:ListItem>
                                    <asp:ListItem>nee</asp:ListItem>
                                </asp:DropDownList></td></tr>
                            <tr><td>Abonnement: </td><td> <asp:DropDownList ID="ddlSubscription" runat="server" DataSourceID="dsSubscription" DataTextField="abbonementnaam" DataValueField="abbonementnaam"></asp:DropDownList> </td></tr>
                        </table>

    <asp:EntityDataSource ID="dsLanguage" runat="server" ConnectionString="name=debioscoopEntities" DefaultContainerName="debioscoopEntities" EnableFlattening="False" EntitySetName="languages" EntityTypeFilter="language" Select="it.[taalid], it.[naam]">
            </asp:EntityDataSource>
            <asp:EntityDataSource ID="dsSubscription" runat="server" ConnectionString="name=debioscoopEntities" DefaultContainerName="debioscoopEntities" EnableFlattening="False" EntitySetName="abbonements" Select="it.[abbonementnaam]">
            </asp:EntityDataSource>

        </div>
</asp:Content>


